package com.lf.entity;

import com.lf.util.OrderUUID;
import com.lf.weixinOriginPay.sdk.WXPayUtil;
import com.lf.weixinOriginPay.value.StaticValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.bouncycastle.util.Times;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @program: pzsh
 * @description: 用户
 * @author: gxl
 * @create: 2019-12-05
 **/
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name="wx_pay_order")
public class WxPayOrderlEntity  extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "编号")
    @Column(name = "id")
    private Integer id;

    @Column(name = "appid")
    @ApiModelProperty(value = "小程序ID")
    private String appid;

    @Column(name = "mch_id")
    @ApiModelProperty(value = "商户ID")
    private String mchId;

    @Column(name = "body")
    @ApiModelProperty(value = "商品描述")
    private String body;

    @Column(name = "total_fee")
    @ApiModelProperty(value = "金额，单位：分")
    private String totalFee;

    @Column(name = "out_trade_no")
    @ApiModelProperty(value = "商户订单流水号")
    private String outTradeNo;


    @Column(name = "openid")
    @ApiModelProperty(value = "openid")
    private String openid;


    @Column(name = "attach")
    @ApiModelProperty(value = "自定义参数")
    private String attach;

    @Column(name = "return_code")
    @ApiModelProperty(value = "支付通信码：SUCCESS/FAIL")
    private String returnCode;

    @Column(name = "return_msg")
    @ApiModelProperty(value = "支付通信提示")
    private String returnMsg;

    @Column(name = "result_code")
    @ApiModelProperty(value = "支付结果码：SUCCESS/FAIL")
    private String resultCode;

    @Column(name = "err_code")
    @ApiModelProperty(value = "支付错误码")
    private String errCode;

    @Column(name = "err_code_desc")
    @ApiModelProperty(value = "支付错误码提示")
    private String errCodeDesc;

    @Column(name = "is_subscribe")
    @ApiModelProperty(value = "用户是否关注公众账号，Y-关注，N-未关注")
    private String isSubscribe;

    @Column(name = "bank_type")
    @ApiModelProperty(value = "付款银行")
    private String bankType;

    @Column(name = "transaction_id")
    @ApiModelProperty(value = "微信支付订单号")
    private String transactionId;

    @Column(name = "time_end")
    @ApiModelProperty(value = "支付完成时间")
    private String timeEnd;

    @Column(name = "fee_type")
    @ApiModelProperty(value = "货币种类")
    private String feeType;
}
